package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysVideoMapper;
import com.ruoyi.system.domain.SysVideo;
import com.ruoyi.system.service.ISysVideoService;

@Service
public class SysVideoServiceImpl implements ISysVideoService {
    @Autowired
    private SysVideoMapper sysVideoMapper;

    @Override
    public SysVideo selectVideoById(Long videoId) {
        return sysVideoMapper.selectVideoById(videoId);
    }

    @Override
    public List<SysVideo> selectVideoList(SysVideo sysVideo) {
        return sysVideoMapper.selectVideoList(sysVideo);
    }

    @Override
    public int insertVideo(SysVideo sysVideo) {
        return sysVideoMapper.insertVideo(sysVideo);
    }

    @Override
    public int updateVideo(SysVideo sysVideo) {
        return sysVideoMapper.updateVideo(sysVideo);
    }

    @Override
    public int deleteVideoById(Long videoId) {
        return sysVideoMapper.deleteVideoById(videoId);
    }

    @Override
    public int deleteVideoByIds(Long[] videoIds) {
        return sysVideoMapper.deleteVideoByIds(videoIds);
    }

    @Override
    public SysVideo selectVideoByVideoName(String videoName) {
        return sysVideoMapper.selectVideoByVideoName(videoName);
    }
}